import java.util.Date;

public class Event {
    private Date mDate;

    public Event(Date mDate) {
        super();
        this.mDate = mDate;
    }

    public void print() {
        if (mDate != null) {
            System.out.println(mDate.toLocaleString());

        }
    }

    public long getTime() {
        if (null != mDate) {
            return mDate.getTime();
        }
        return 0;
    }

}
